from marshmallow import fields

from gis.common.django_ext.forms import BaseSchema, EnumField
from itpay.core.agency.const import PayMethodType


class AuthTokenSchema(BaseSchema):
    token = fields.String()
    # pass


class ReceiptAddressDetailSchema(AuthTokenSchema):
    pay_method = EnumField(PayMethodType, required=True)


class RechargeOrderDetailSchema(AuthTokenSchema):
    pass
